package 作业;

import java.util.ArrayList;

public class Course {
	private String courseName;
	private ArrayList<String> students;
	private int numberOfstudents;
	public Course(String courseName) {
		// TODO 自动生成的构造函数存根
		this.courseName = courseName;
		students = new ArrayList<String>();
		numberOfstudents = 0;
	}
	public String getCourseName() {
		return courseName;
	}
	public ArrayList<String> getStudents() {
		return students;
	}
	public int getNumberOfstudents() {
		return numberOfstudents;
	}
	public void addStudent(String student) {
		students.add(student);
		numberOfstudents++;
	}
	public void dropStudent(String student) {
		students.remove(student);
	}
	public Object clone() {
		return courseName;
		
	}
}
